<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/include/includeHeader.jsp"%>



<table width="100%" height="100%">
    <tr><td align="center" valign="middle">
<!-- -------------------------------------------- -->

<%
    List sysLangList = MemObjFactory.getSysLanguageList(sessionLocale);
    pageContext.setAttribute("sysLangList",sysLangList);
    
    List countryList = MemObjFactory.getAllCountryList(sessionLocale);
    pageContext.setAttribute("countryList",countryList);
    
    
    
    
%>

	<script language="javascript" type="text/javascript">
	
		function submitform(pressbutton){
			//document.adminForm.task.value=pressbutton;
			try {
				document.adminForm.onsubmit();
				}
			catch(e){}
			document.adminForm.submit();
		}
	
		function submitbutton(pressbutton) {
			var form = document.adminForm;
			if (pressbutton == 'cancel') {
				submitform( pressbutton );
				return;
			}

			// do field validation
			if (form.username.value == ""){
				alert( "username could not be empty." );
			} else if (form.password.value == ""){
				alert( "please give a password" );
			} else if (form.password.value != form.password2.value){
				alert( "please reinput the same password" );
			}		
			else {
				submitform( pressbutton );
			}
		}
	</script> 

<form action="/module/community/member/member.do?CMD=add" method="post" name="adminForm">
<!-- <form action="/module/common/register/registerMember.do?CMD=registerCompany" method=post> -->
<table width="80%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="left">If you have some money and you want to invest, in which areas 

should you invest your money? Have you ever thought about investing in space technology? 

This could be the most profitable industry in the 21st century. </td>
      </tr>
    </table>
      <br>
      <table width="80%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="30" align="left" valign="top" class="notice">
          <mytag:MyActionMsg /></td>
        </tr>
      </table>      
      <table width="80%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td colspan="2" class="su01">Profile - fields with asterisks* are required ;</td>
        </tr>
        <tr>
          <td colspan="2" class="su02">Log-in</td>
        </tr>
        <tr class="su03">
          <td>* 用户名</td>
          <td><input name="username" type="text" size="20"> <input type="submit" 

name="Submit" value="验证用户名"></td>
        </tr>
        <tr class="su03">
          <td>* 密码</td>
          <td><input name="password" type="text" size="20"></td>
        </tr>
        <tr class="su03">
          <td>* 密码确定</td>
          <td><input name="password2" type="text" size="20"></td>
        </tr>
        <tr class="su03">
          <td>* 邮箱</td>
          <td><input name="email" type="text" size="40">
          <input type="submit" name="Submit" value="验证邮箱"></td>
        </tr>
		<tr>
          <td colspan="2" class="su03">&nbsp;</td>
        </tr>
        <tr>
          <td colspan="2" class="su02">个人信息</td>
        </tr>
        <tr class="su03">
          <td>* 性别</td>
          <td><input type="radio" name="sex" value="1" checked>男
          	<input type="radio" name="sex" value="0">女</td>
        </tr>
        <tr class="su03">
          <td>* 国家</td>
          <td><mytag:select name="country" notEmpty="true" 
                  value="<%= sessionLocale.toString() %>" listName="countryList"/></td>
        </tr>
        <tr class="su03">
          <td>&nbsp;&nbsp;城市</td>
          <td><input name="city" type="text" size="10"></td>
        </tr>
        <tr class="su03">
          <td>&nbsp;&nbsp;出生日期</td>
          <td><select name="bir_year">
       <%
          for(int i=1940;i<2050;i++){
              out.println("<option value='"+i+"'>"+i+"</option>");
          }
       %>   
              </select>
            <select name="bir_month">     
			<option value="1">1</option>
			<option value="2">2</option>
			<option value="3">3</option>
			<option value="4">4</option>
			<option value="5">5</option>
			<option value="6">6</option>
			<option value="7">7</option>
			<option value="8">8</option>
			<option value="9">9</option>
			<option value="10">10</option>
			<option value="11">11</option>
			<option value="12">12</option>
            </select>
            <select name="bir_day" >
       <%
          for(int i=1;i<32;i++){
              out.println("<option value='"+i+"'>"+i+"</option>");
          }
       %>   
          </select></td>
        </tr>
        <tr class="su03">
          <td>* 本国语言</td>
          <td><mytag:select name="sysLanguage" notEmpty="true" 
                  value="<%= sessionLocale.toString() %>" listName="sysLangList"/></td>
        </tr>
        <tr class="su03">
          <td>* 学习语言</td>
          <td><mytag:select name="practLanguage" listName="sysLangList"/></td>
        </tr>
        <tr class="su03">
          <td>&nbsp;&nbsp;简介</td>
          <td><textarea name="introduce" cols="60" rows="6"></textarea></td>
        </tr>
        <tr class="su03">
          <td>&nbsp;</td>
          <td height="30"><input type="checkbox" name="checkbox" value="checkbox">
            <a href="agreement.htm" target="_blank">我已阅读注册协议并遵守协议规定</a></td>
        </tr>
        <tr align="center" valign="bottom">
          <td height="60" colspan="2"><input type="submit" name="Submit" value="提交"></td>
        </tr>
        <tr align="center" valign="bottom">
          <td height="60" colspan="2"><a href="#" onclick="submitbutton(this)">submit</a></td>
        </tr>


      </table>
</td></tr></table>